import request from '@/utils/request'

// 查询地址详情列表
export function listAddrDetail(query) {
  return request({
    url: '/st/addrDetail/list',
    method: 'get',
    params: query
  })
}

// 查询地址详情详细
export function getAddrDetail(id) {
  return request({
    url: '/st/addrDetail/' + id,
    method: 'get'
  })
}

// 新增地址详情
export function addAddrDetail(data) {
  return request({
    url: '/st/addrDetail',
    method: 'post',
    data: data
  })
}

// 修改地址详情
export function updateAddrDetail(data) {
  return request({
    url: '/st/addrDetail',
    method: 'put',
    data: data
  })
}

// 删除地址详情
export function delAddrDetail(id) {
  return request({
    url: '/st/addrDetail/' + id,
    method: 'delete'
  })
}
